import { addManyTower } from '@/apis/towerAPI'
import * as XLSX from 'xlsx'
import { addModels } from './readXlsx'

export async function readTower(wb: XLSX.WorkBook, id: number) {
  const model = {
    tName: '',
    tType: '',
    tStyle: '',
    corner: '',
    altitude: 1,
    remark: '',
    zoneId: 1,
  } as TowerModel
  await addModels(wb, 'towers', model, addManyTower, id)
}
